#include "DataConfigBase.h"


void ConfigMgrBase::loadFile(string strPath)
{
	string strFullPath = FileUtils::getInstance()->fullPathForFilename(strPath);
	string data = FileUtils::getInstance()->getStringFromFile(strFullPath);
	rapidjson::Document doc;
	doc.Parse(data.c_str());
	for (int i = 0; i < doc.Size(); i++){
		this->prase(doc[i]);
	}
	doc.Clear();
}

int ConfigMgrBase::getCount()
{
	return m_vecData.size();
}

ConfigMgrBase::ConfigMgrBase()
{

}

ConfigMgrBase::~ConfigMgrBase()
{

}
